Skip to content

fabric: extract standalone sparkring_fabric package & decouple libsircl - #411

Merged
FujitsuPolycom merged 2 commits into
mainfrom
feat/standalone-sparkring-fabric
Nov 30, 2026
Merged

FujitsuPolycom merged 2 commits into
mainfrom
feat/standalone-sparkring-fabric

Conversation

@FujitsuPolycom

Copy link
Copy Markdown
Owner

Why

Decouple SparkRing's reusable switchless ring & open-chain routing/relay plane (routes.py + fabric/ + mesh_marker.c) and Gen-4 libsircl/tools/site_routes.py from the legacy Gen-3 Python spark_transport/sircl/ tree (CuTe-DSL + vLLM launcher).

What Changed

  • Standalone stdlib-only sparkring_fabric/ package: Extract routes, budget, subset, site, and fabric/ (layouts, plan, commands, state, diff, ops, report, cli, mesh_marker.c) into sparkring_fabric/ with PEP 621 pyproject.toml (sparkring-fabric CLI) and zero imports from sparkring_sircl, vllm, torch, or runtime/.
  • 100% backward-compatible shims (spark_transport/sircl/sparkring_sircl/): Replace routes.py and fabric/*.py with thin re-export shims so all existing Gen-3 callers and tests keep working unchanged.
  • Decouple libsircl (spark_transport/libsircl/tools/site_routes.py): Import sparkring_fabric.routes directly with zero dependency on spark_transport/sircl/.
  • Packaging & layout (scripts/check_repository_layout.py, scripts/build_deb.py): Register sparkring_fabric/ in repo layout validation and the default .deb runtime manifest.

Verification

  • pytest: 92 passed across sparkring_fabric/tests (incl. import-boundary test), test_site_routes.py, test_build_deb.py, test_ci_checks.py, and runtime/host/test_relays.py; 1,093 passed / 0 failed in spark_transport/sircl.
  • WSL gcc -std=c11 -O2 -Wall -Wextra -Werror sparkring_fabric/sparkring_fabric/fabric/mesh_marker.c clean; real pip wheel installs of both sparkring-fabric and sparkring-sircl verified CLI + shims.
  • Post-rebase on 5f04686a: check_repository_layout.py, check_release_safety.py . (0 findings), check_markdown_links.py ., and ruff check all exit 0.

Risks / Follow-Ups

  • Gen-3 spark_transport/sircl/ remains intact via thin shims and can be archived cleanly once no active profiles rely on it.

@FujitsuPolycom
FujitsuPolycom merged commit 4f88be3 into main Nov 30, 2026
10 checks passed
@FujitsuPolycom
FujitsuPolycom deleted the feat/standalone-sparkring-fabric branch November 30, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant